package com.you.netty.pipeline;

import java.io.OutputStream;
import java.net.Socket;

public class client {

    //使用bio连接netty server
    public static void main(String[] args) throws Exception {

        Socket socket = new Socket("127.0.0.1", 8080);
        OutputStream outputStream = socket.getOutputStream();
        String testStr = "a";
        outputStream.write(testStr.getBytes("UTF-8"));
        outputStream.flush();
        outputStream.close();
        socket.close();
    }
}
